package br.com.albatroz.bean;

import java.util.Map;

import javax.faces.context.FacesContext;
import javax.persistence.EntityManager;

import br.com.albatroz.utils.JpaUtils;

public abstract class AbstractBean {
	
	private EntityManager em = JpaUtils.getInstance().getEntityManager();
	private Map externalParam = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();  
	
	public EntityManager getEm() {
		return em;
	}

	public void setEm(EntityManager em) {
		this.em = em;
	}

	public Map getExternalParam() {
		return externalParam;
	}

	public void setExternalParam(Map externalParam) {
		this.externalParam = externalParam;
	}

}
